package com.example.zhinongbao.view;

import android.app.ActivityOptions;
import android.content.Intent;
import android.os.Bundle;
import android.transition.Slide;
import android.view.View;
import android.widget.ImageButton;
import android.widget.LinearLayout;


import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.zhinongbao.R;

public class Publish_Paper extends AppCompatActivity {
    private LinearLayout mbutton1;
    private LinearLayout mbutton2;
    private LinearLayout mbutton3;
    private LinearLayout mbutton4;
    private ImageButton mbackbutton;


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().setEnterTransition(new Slide());
        setContentView(R.layout.publish_paper);
        mbutton1 = findViewById(R.id.publish_shipments);
        mbutton2 = findViewById(R.id.publish_caigou);
        mbutton3 = findViewById(R.id.shortvideo);
        mbutton4 = findViewById(R.id.live);
        mbackbutton = findViewById(R.id.backbutton_publish);

        mbutton1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(Publish_Paper.this, AddGoodsActivity.class);
                startActivity(intent, ActivityOptions.makeSceneTransitionAnimation(
                        Publish_Paper.this).toBundle());
            }
        });
mbackbutton.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
        onBackPressed();
    }
});

    }


}
